package com.hsq.ndmall.wx.feign.index;

import com.hsq.ndmall.common.utils.R;
import com.hsq.ndmall.wx.feign.factory.ProductFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author 黄四清
 * @version 1.0.0
 * @ClassName ProductFegin.java
 * @Description TODO
 * @createTime 2021年08月11日 16:03:00
 */
@FeignClient(value = "product-service",fallbackFactory = ProductFallbackFactory.class)
public interface ProductFeign {
    @GetMapping("/product/brand/list")
    R listBrand(@RequestParam Map<String, Object> params);


    @GetMapping("/product/category/list")
    R listChannel(@RequestParam Map<String, Object> params);

    @GetMapping("/product/category/test")
    R listChannelTest();

    @GetMapping("/product/goods/list")
    R listNewGoods(@RequestParam Map<String, Object> params);


    @GetMapping(value = "/product/category/floor")
    R floorGoodsList(@RequestParam("page") Integer page,@RequestParam("limit") Integer limit);
}
